package com.touchstone.cloudpacs.controller;

import com.touchstone.cloudpacs.common.utils.result.ResultVO;
import com.touchstone.cloudpacs.service.IHardwareParamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description :检测服务器参数
 * @Author :djw
 * @Date :16:14 2020/2/17
 */
@RestController
@RequestMapping("/server")
@Api(description = "硬件参数", tags = "硬件参数")
public class ServerParamController {

    @Resource
    @Qualifier("hardwareParamService")
    private IHardwareParamService hardwareParamService;

    @GetMapping("/getServerParams")
    @ApiOperation(value = "查询服务器状态", notes = "查询服务器状态")
    public ResultVO getMemory() {
        return ResultVO.success(hardwareParamService.getServerParams());
    }

}
